<!DOCTYPE html>
<html lang="zh-CN" style="font-size: 13.33333vw">
<head>
  <meta charset="UTF-8">
  <meta content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
  <title>PWA</title>
  <link rel="stylesheet" href="main.css">
  <link rel="manifest" href="manifest.json">
</head>
<body>
  <h3>HELLO PWA</h3>
  <img src="./image/1.png" alt="">
  <script>
    if(navigator.serviceWorker != null){
      navigator.serviceWorker.register('./sw.js')
      .then(function (registartion) {
        console.log('支持sw', registartion.scope)
      })
    }
  </script>
</body>
</html>